{% extends "_base.html" %}

{% block title %}{{ user['user_name'] }}{% if user['user_sign'] %} ({{ user['user_sign'] }}){% end %} - {{ handler.get_runtime_conf('title') }}{% end %}

{% block head_css %}
<style>
    .lines {
        padding: 16px;
    }

    .title {
        font-weight: normal;
    }
</style>
{% end %}

{% block main %}
<div class="row">
    <div class="span3 offset1">
        {% module Template("shell/_side.html", user = user) %}
    </div>
    <div class="span6">
        <div class="board" id="shell-index-posts">
            {% module Template("shell/index/posts.html", pager = pager, posts = posts) %}
        </div>
    </div>
</div>
{% end %}

{% block foot_js %}
<script src="{{ handler.get_runtime_conf('sites_asset') }}js/jquery.pjax.min.js"></script>
<script>
    $(function(){
        $('#shell-index-posts').pjax('a[data-pjax]', '#shell-index-posts');
    });
</script>
{% end %}
